# _*_ utf-8 _*_
# 进行二维列表的操作
import random

scores = []                     # 创建一个空列表记录成绩
names = ["刘备", "关羽", "张飞"]
courses = ["语文", "数学", "英语"]
for row in range(len(names)):
    scores.append([])
    for col in range(len(courses)):
        score = eval(input("请输入{}的{}成绩：".format(names[row], courses[col])))
        scores[row].append(score)
print(scores)
print("\t\t语文\t\t数学\t\t英语")
for row in range(len(names)):
    print(names[row], end="\t\t")
    for col in range(len(scores)):
        print("{:<.1f}".format(scores[row][col]), end="\t\t")
    print()
